package com.rockcent.mall.lib.repository;

import com.rockcent.common.common.PageResult;
import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.dto.CustomerFundFlowDto;
import com.rockcent.mall.lib.dto.StatisticDto;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * Created by DK on 16/11/21.
 */
@Repository
public interface CustomerFundFlowRepositoryCustom {

    PageResult<CustomerFundFlowDto> findMallCustomerFundInfo(Long customerId, String mallOrderNum, String transactionType, String paymentMethod, String beginDate, String endDate, Long mallId, PageResult pageResult);

    PageResult<CustomerFundFlowDto> findCustomerIdPage(Long customerId,Long mallId, Whether no,PageResult pageResult);

    StatisticDto findStatisticSum(Long customerId);

    Double findMonthlyIncome(Long customerId, String firstDate, String lastDate);
}
